home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / progjour / 1988 / 04 / dc.h < prev    next >
Text File  |  1988-04-27  |  1KB  |  36 lines

  1. /*
  2.  * Header file for the digital clock.
  3.  *
  4.  * Written by Michael Babcock and Bill Hall
  5.  * April 20, 1988
  6.  *
  7.  */
  8.  
  9. /* This trick insures that globals are declared in only one place */
  10. #if !defined(EXTERN)
  11. #define EXTERN extern
  12. #endif
  13.  
  14. /* Declarations which need to be known in all C source files */
  15. LONG FAR PASCAL MainWndProc(HWND,unsigned,WORD,LONG);
  16. BOOL FAR InitProgram(HANDLE, HANDLE, LPSTR, int);
  17.  
  18. /* Resource string constants */
  19. #define IDS_APPNAME    100
  20. #define IDS_DISPLAYNAME    101
  21. #define IDS_TIMESTR    102
  22. #define IDS_AM        103
  23. #define IDS_PM        104
  24. #define IDS_FONTWIDTH    105
  25. #define IDS_FONTHEIGHT    106
  26. #define IDS_FONTWEIGHT    107
  27.  
  28. /* Global variables */
  29. EXTERN HWND hWndMain;        /* main window handle */
  30. EXTERN HFONT hFont;        /* handle to font used when drawing in icon */
  31. EXTERN WORD ClockTimerEventID;    /* timer event identifier */
  32. EXTERN char szAppName[10];    /* name of the application */
  33. EXTERN char szTimestr[10];    /* icon title string */
  34. EXTERN char szAM[10];        /* A. M. string */
  35. EXTERN char szPM[10];        /* P. M. string */
  36.